<template>
  <div class="interface-setting" @click="active = true">
    <div>
      <img />
      <div>
        <div>充值设置</div>
        <div>活动套餐、市场股东办理</div>
      </div>
    </div>
    <div></div>
  </div>
  <n-drawer class="interface-setting-drawer" v-model:show="active" width="89.06%">
    <n-drawer-content body-style="--n-body-padding:0;" style="--n-header-border-bottom:none" closable>
      <template #header>
        <div class="my-title--primary">收银界面设置</div>
      </template>
      <div class="interface-setting-drawer__content">
        <div>
          <label>
            <input type="radio" name="interface" checked />
            <div>
              <div>
                <div>标准收银台界面</div>
                <div>标准收银台界面显示内容相对全面，如无需显示过多内容，可选择
                  简洁界面。</div>
              </div>
              <img />
            </div>
          </label>
          <label>
            <input type="radio" name="interface" />
            <div>
              <div>
                <div>简洁收银台界面</div>
                <div>简洁收银台界面内容相对较少，如需显示内容全面，可选择标准收银 台界面。</div>
              </div>
              <img />
            </div>
          </label>
        </div>
        <div class="interface-setting-drawer__content--shadow"></div>
      </div>
      <template #footer>
        <button class="my-btn--primary"  @click="active = false">保存设置</button>
      </template>
    </n-drawer-content>
  </n-drawer>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(false)
</script>
<style lang="less" scoped>
.interface-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 30px;
  height: 160px;
  border-bottom: 1px solid #E5E5E5;
  >div:first-child {
    display: flex;
    align-items: center;

    >img {
      margin-right: 28px;
      width: 64px;
      height: 64px;
    }

    >div {
      >div:first-child {
        margin-bottom: 15px;
        font-size: 28px;
        color: #2E323D;
      }

      >div:last-child {
        font-size: 24px;
        color: #4A5060;
      }
    }
  }

  >div:last-child {
    width: 10px;
    height: 10px;
    border-top: 3px solid #4A5060;
    border-right: 3px solid #4A5060;
    transform: rotate(45deg)
  }

}

.interface-setting-drawer {
  &__content {
    position: relative;
    height: 100%;
    overflow: hidden;

    >div:first-child {
      display: flex;
      justify-content: space-between;
      margin: 0 30px;

      >label {
        line-height: 1;

        >input {
          display: block;
          width: 0;
          height: 0;
          opacity: 0;
        }

        >input:checked+div {
          background: #EBF4FF;
          border: 2px solid #1981F4;
        }

        >div {
          padding: 0 30px;
          width: 816px;
          height: 780px;
          background: #F7F7F7;
          border: 1px solid #C5C5C5;
          border-radius: 10px;
          box-sizing: border-box;

          >div:first-child {
            padding-top: 30px;
            height: 194px;
            border-bottom: 1px solid #E5E5E5;
            box-sizing: border-box;

            >div:first-child {

              font-size: 26px;
              color: #2E323D;
            }

            >div:last-child {
              margin-top: 25px;
              font-size: 24px;
              color: #4A5060;
            }
          }

          img {
            margin-top: 80px;
            width: 100%;
            height: 426px;
          }
        }
      }
    }

    &--shadow {
      position: absolute;
      bottom: -10px;
      width: 100%;
      height: 10px;
      box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.3);
    }
  }
}
</style>